{extend name="index/index" /}
{block name='main'}
<div class="container">
    <div class="row mt20">
        <div class="col-md-3">
            <h2>新碟上架</h2>
        </div>

    </div>
    <!-- ------ -->
    <hr>
    <div class="row">
        {foreach $list as $k => $v}
        <div class="col-md-3 ">
            <div class="">
                <a href="{:url('index/Grounding/album?id='.$v['id'])}"><img src="__UPLOAD__/{$v['imgs']}" alt="..." width='200px'></a>

                <div class="caption">
                    <p>{$v['name']}</p>

                    <span>by </span>
                    <a href="" title="">{$v['singer']}</a>
                    <sup class="glyphicon glyphicon-star-empty">

                    </sup>
                    </p>
                </div>
            </div>
        </div>
   
        {/foreach}
    
    </div>
    <div class="row mt20">
        <div class="col-md-2">
            <h2>全部专辑</h2>
        </div>
        <div class="col-md-3 " class="">
            <ul class="list-inline mt20">
                <li><a href="{:url('index/Grounding/grounding')}">全部 |</a></li>
                {foreach $res as $k => $v}
                    {foreach $v as $a => $b}
                    <li><a href="{:url('index/Grounding/classify?name='.$b)}" style="line-height: 35px"> {$b} |</a></li>                 
                    {/foreach}
                {/foreach}

            </ul>
        </div>

    </div>
    <hr>
    <div class="row">
        {foreach $list2 as $k => $v}
        <div class="col-md-3">
            <div class="">
                <a href="{:url('index/Grounding/album?id='.$v['id'])}">
                    <img src="__UPLOAD__/{$v['imgs']}" alt="..." width='200px'>
                </a>
                <div class="caption">
                    <p>{$v['name']}</p>
                    <a href="" title="" class="text-center">{$v['singer']}</a>
                    </p>
                </div>
            </div>
        </div>
        {/foreach}
   

    </div>
    

        <div class="row">
            <div class="col-md-4 col-md-offset-4 ">
                <nav aria-label="Page navigation">
                   {$list2->render()}
                </nav>
            </div>


        </div>



    </div>

    {/block}